package com.kaifamiao.demo.d0812;

import java.util.List;

public class Demo {

    public static void main(String[] args) {
        // 创建一个不可变的 集合
        List list = List.of(1, 2, 3, 4, 5);


        System.out.println(list.get(1));
        System.out.println(list);
    }
}
